package com.ruoyi.admin.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠卷对象 ml_promotion
 * 
 * @author ruoyi
 * @date 2025-03-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value ="ml_promotion")
public class MlPromotionDto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠卷ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String activityName;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 适用类别 0:单个商品 1:单个类型 2:全部适用 */
    @Excel(name = "适用类别 0:单个商品 1:单个类型 2:全部适用")
    private Long suitCategory;

    /** 使用条件 */
    @Excel(name = "使用条件")
    private BigDecimal minCondition;

    /** 减免金额 */
    @Excel(name = "减免金额")
    private BigDecimal discountAmount;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 总量 */
    @Excel(name = "总量")
    private Long totalQuota;

    /** 剩余数量 */
    @Excel(name = "剩余数量")
    private Long remainingQuota;

    /** 兑换码 */
    @Excel(name = "兑换码")
    private String redeemCode;

    /** 状态 0:未生效 1:生效中 */
    @Excel(name = "状态 0:未生效 1:生效中")
    private Long activityStatus;

    /** 商品类别ID */
    @Excel(name = "商品类别ID")
    private Long categoryId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;
    /**
     * 商品ID
     */
    @TableField(exist = false)
    private Long goodsId;
}
